package com.rao.core.startcollect;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * 有两个ConfigurableListableBeanFactoryUtil
 * com.rao.config.websecurity.permitcollect.ConfigurableListableBeanFactoryUtil
 * com.rao.core.startcollect.ConfigurableListableBeanFactoryUtil
 */
@Component("start_ConfigurableListableBeanFactoryUtil")
public class ConfigurableListableBeanFactoryUtil implements BeanFactoryPostProcessor {
    public static ConfigurableListableBeanFactory configurableListableBeanFactory;

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        configurableListableBeanFactory = beanFactory;
    }
}
